/**
 * 
 */
package com.res.simulator.view;


/**
 * @author mg40327
 */
public class SearchResultView {

    private String location;

    private String apiName;

    private long apiId;

    private String inputValueString;

    private String result;

    private Long recordId;

    public String getResult() {

        return result;
    }

    public void setResult(String result) {

        this.result = result;
    }

    public String getApiName() {

        return apiName;
    }

    public void setApiName(String apiName) {

        this.apiName = apiName;
    }

    public String getInputValueString() {

        return inputValueString;
    }

    public void setInputValueString(String inputValueString) {

        this.inputValueString = inputValueString;
    }

    public long getApiId() {

        return apiId;
    }

    public void setApiId(long apiId) {

        this.apiId = apiId;
    }

    public Long getRecordId() {

        return recordId;
    }

    public void setRecordId(Long recordId) {

        this.recordId = recordId;
    }

    public String getLocation() {

        return location;
    }

    public void setLocation(String location) {

        this.location = location;
    }

    @Override
    public int hashCode() {

        return new Long(recordId).hashCode();
    }

    @Override
    public boolean equals(Object obj) {

        if (obj == null) {
            return false;
        }
        if (!(obj instanceof SearchResultView)) {
            return false;
        }
        return this.recordId == ((SearchResultView) obj).getRecordId();
    }
}
